package com.md.api.authentication;

import com.md.model.request.IdListRequest;
import com.md.model.response.authentication.users.InternalUsersResponse;
import com.md.model.system.CommonResult;
import com.md.value.constants.ApiConstants;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @author 刘骄阳
 * 2023-12-27 16:47
 */
@Api(tags = {ApiConstants.INTERNAL})
public interface InternalApi {
  /**
   * 查询用户信息
   *
   * @param request 用户id列表
   * @return 操作结果
   */
  @PostMapping("/internal/query-by-ids")
  @ApiOperation("根据用户id批量查询用户信息")
  CommonResult<List<InternalUsersResponse>> selectUserListByIds(@RequestBody
                                                                @ApiParam("根据id批量查询用户信息") IdListRequest request);
}
